{template 'web/common/common'}
{template 'web/system/navbar'}
<link rel="stylesheet" type="text/css" href="../addons/kundian_farm/resource/css/style.css" />
<div class="panel panel-success">
    <div class="panel-heading">
        <h3 class="panel-title">
            天气设置
        </h3>
    </div>

    <div class="panel-body">
        <div class="panel panel-info">
            <div class="panel-heading">
                <h3 class="panel-title"><p>提示：</p>
                    <p>1、天气设置使用的是阿里云的免费接口。</p>
                    <p>2、详细请查看 <a target="_blank" href="https://market.aliyun.com/products/57126001/cmapi014302.html?spm=5176.730005.productlist.d_cmapi014302.tElWJs#sku=yuncode830200000">
                        https://market.aliyun.com/products/57126001/cmapi014302.html?spm=5176.730005.productlist.d_cmapi014302.tElWJs#sku=yuncode830200000</a>。</p>

                </h3>
            </div>
        </div>
        <form id="sign-form" class="form-horizontal" role="form" method="post" action="{url 'site/entry/system',array('m'=>'kundian_farm','op'=>'weather_save','version_id'=>$_GPC['version_id'])}" name="submit" style="padding: 20px 0;">

            <div class="form-group">
                <label class="col-sm-2 control-label">是否开启天气展示板块</label>
                <div class="col-sm-8">
                    {if $list['is_open_weather']==1}
                    <input type="checkbox" checked class="js-switch" value="1" name="is_open_weather">
                    {else}
                    <input type="checkbox" class="js-switch" name="is_open_weather" value="1">
                    {/if}
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">农场地址纬度</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="longitude" id="longitude" value="{$list['longitude']}">
                    <input type="hidden" name="id" value="{$list['id']}">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">农场地址经度</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="latitude" id="latitude" value="{$list['latitude']}">
                    <span style="color: gray;">经纬度获取地址：http://lbs.qq.com/tool/getpoint/</span>
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">天气接口appcode</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="appcode" id="appcode" value="{$list['appcode']}">
                </div>
            </div>


            <div class="form-group">

                <div class="col-sm-offset-2 col-sm-10">
                    <input type="hidden" name="id" value="{$list['id']}">
                    <button type="submit" class="btn btn-success">保存</button>
                    <!--<a class="btn btn-default" href="{url 'site/entry/system',array('m'=>'kundian_farm')}">返回</a>-->
                </div>
            </div>
        </form>
    </div>
</div>
